package com.syedu.cels.entity;

/**
 * @author easonsy
 * @Description
 * @createTime 2022/03/21 22:58:00
 */
public class Vocabulary extends Base{
    private String abbreviation;

    public Vocabulary() {

    }

    public Vocabulary(String en, String[] cns) {
        super(en, cns);
    }

    public Vocabulary(String en, String[] cns, String abbreviation) {
        super(en, cns);
        this.abbreviation = abbreviation;
    }

    public String getAbbreviation() {
        return abbreviation;
    }

    public void setAbbreviation(String abbreviation) {
        this.abbreviation = abbreviation;
    }
    @Override
    public String toString(){
        String result=super.toString();
        if(abbreviation!=null){
            result+="缩写:"+abbreviation;
        }return result;
    }
}
